import json

import requests

url = 'https://webapi.qingting.fm/api/mobile/rank'

headers = {
    'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Mobile Safari/537.36x-requested-with: XMLHttpRequest'
}

r = requests.get(url=url, headers=headers)
j = json.loads(r.content.decode('utf-8'))
print(j)
for x in j.get('rankinglist'):
    # print(x)
    print(x.get('title'))
    print(x.get('playCount'))